package result;
        import lombok.AllArgsConstructor;
        import lombok.NoArgsConstructor;

public class ResultEnum {

    /**
     * HTTP请求状态码枚举
     */
    public static enum RequestCode{

        SUCCESS(200,"请求成功。"),

        //逻辑上失败
        FAIL(201,"执行失败"),

        NOT_FOUND(404,"用户请求的资源不存在。"),

        //程序BUG
        SERVER_ERROR(500,"服务器发生错误。");


        public Integer code;
        public String msg;

        RequestCode(Integer code,String msg){
            this.code = code;
            this.msg = msg;
        }
    }
}


